﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KAKA.Test
{
    [TestFixture]
    public class ImageHelperFixture
    {
        [Test]
        public void Test()
        {
            //var img = System.Drawing.Image.FromFile(@"C:\Users\c-gins.zhang\Pictures\IMG_0296.JPG");
            //var ms = new MemoryStream();
            //img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);

            //ms.Flush();

            //var buff = ms.GetBuffer();


            ////var buff2 = Util.Image.Box(buff, 300);
            ////var buff2 = Util.Image.Cut(buff, 300, 300, 300, 300);
            ////var buff2 = Util.Image.Fill(buff, 300);
            ////var buff2 = Util.Image.Square(buff, 300);
            ////var buff2 = Util.Image.Resize(buff, 300, 400, Util.ImageResizeMode.Normal);

            //var buff2 = Util.Image.Square(Util.Image.Fill(buff, 400), 300);

            //Util.Image.Save(buff2, string.Format(@"C:\Users\c-gins.zhang\Pictures\{0}.jpg", DateTime.Now.Ticks));


        }
    }
}
